﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

#pragma warning disable CA1814 // Prefer jagged arrays over multidimensional

namespace Decoration.Models.Migrations
{
    /// <inheritdoc />
    public partial class updateCustomerInfoPassword : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "Base_DictInfos",
                columns: table => new
                {
                    Id = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    DictTypeId = table.Column<int>(type: "int", nullable: false),
                    DictName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    DictValue = table.Column<int>(type: "int", nullable: false),
                    DictDesc = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    DictOrder = table.Column<int>(type: "int", nullable: true),
                    CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    Status = table.Column<int>(type: "int", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Base_DictInfos", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "Base_DictTypes",
                columns: table => new
                {
                    Id = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    DictTypeName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    Status = table.Column<int>(type: "int", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Base_DictTypes", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "Base_MenuInfos",
                columns: table => new
                {
                    Id = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    MenuName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    MenuUrl = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
                    MenuIcon = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    PId = table.Column<int>(type: "int", nullable: false),
                    IsShow = table.Column<int>(type: "int", nullable: true),
                    MenuOrder = table.Column<int>(type: "int", nullable: true),
                    CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    Status = table.Column<int>(type: "int", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Base_MenuInfos", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "Base_RoleInfos",
                columns: table => new
                {
                    Id = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    RoleName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    RoleValue = table.Column<int>(type: "int", nullable: false),
                    Remark = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
                    CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    Status = table.Column<int>(type: "int", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Base_RoleInfos", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "Base_UserInfos",
                columns: table => new
                {
                    Id = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    UserName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    Sex = table.Column<string>(type: "nvarchar(2)", maxLength: 2, nullable: true),
                    Tel = table.Column<string>(type: "nvarchar(11)", maxLength: 11, nullable: true),
                    Email = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
                    IdCard = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    Status = table.Column<int>(type: "int", nullable: false),
                    DeptId = table.Column<int>(type: "int", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Base_UserInfos", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "Base_UserRoles",
                columns: table => new
                {
                    Id = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    UserId = table.Column<int>(type: "int", nullable: false),
                    RoleId = table.Column<int>(type: "int", nullable: false),
                    CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    Status = table.Column<int>(type: "int", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Base_UserRoles", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "BusinessInfos",
                columns: table => new
                {
                    Id = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    BusinessName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    BusinessDesc = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
                    CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    Status = table.Column<int>(type: "int", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_BusinessInfos", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "CustomerInfos",
                columns: table => new
                {
                    Id = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    CustomerName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    CustomerType = table.Column<int>(type: "int", nullable: false),
                    Linkman = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    Desc = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Tel = table.Column<string>(type: "nvarchar(11)", maxLength: 11, nullable: false),
                    Password = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: false),
                    CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    Status = table.Column<int>(type: "int", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_CustomerInfos", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "OrderInfos",
                columns: table => new
                {
                    Id = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    BusinessId = table.Column<int>(type: "int", nullable: false),
                    OrderType = table.Column<int>(type: "int", nullable: false),
                    Creater = table.Column<int>(type: "int", nullable: false),
                    Customer = table.Column<int>(type: "int", nullable: false),
                    CustomerName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    OrderTotal = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
                    ApprovalStatus = table.Column<int>(type: "int", nullable: false),
                    ProjectStatus = table.Column<int>(type: "int", nullable: false),
                    Status = table.Column<int>(type: "int", nullable: false),
                    CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_OrderInfos", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "ProductInfos",
                columns: table => new
                {
                    Id = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    ProductPict = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
                    ProductName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    ProductPrice = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
                    CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    Status = table.Column<int>(type: "int", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_ProductInfos", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "UserProcedureRecords",
                columns: table => new
                {
                    Id = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    UserProcedureId = table.Column<int>(type: "int", nullable: false),
                    WorkPict = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
                    WorkDesc = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
                    CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    Status = table.Column<int>(type: "int", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_UserProcedureRecords", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "WF_ApprovalFlows",
                columns: table => new
                {
                    Id = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    TypeCode = table.Column<int>(type: "int", nullable: false),
                    TypeName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    TypeDesc = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
                    Status = table.Column<int>(type: "int", nullable: false),
                    CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_WF_ApprovalFlows", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "WF_Instances",
                columns: table => new
                {
                    Id = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    ApplicationId = table.Column<long>(type: "bigint", nullable: false),
                    ApplicationTypeId = table.Column<int>(type: "int", nullable: false),
                    NodeCode = table.Column<int>(type: "int", nullable: false),
                    NodeName = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    FlowStatus = table.Column<int>(type: "int", nullable: false),
                    StarterId = table.Column<int>(type: "int", nullable: false),
                    Starter = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    OperatorId = table.Column<int>(type: "int", nullable: false),
                    Operator = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    ToDoerId = table.Column<int>(type: "int", nullable: false),
                    ToDoer = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    Status = table.Column<int>(type: "int", nullable: false),
                    CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    UpdateTime = table.Column<DateTime>(type: "datetime2", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_WF_Instances", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "WF_Nodes",
                columns: table => new
                {
                    Id = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    TypeCode = table.Column<int>(type: "int", nullable: false),
                    NodeCode = table.Column<int>(type: "int", nullable: false),
                    NodeName = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    RoleId = table.Column<int>(type: "int", nullable: false),
                    RoleName = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    IsUseDept = table.Column<int>(type: "int", nullable: false),
                    PrevNodeCode = table.Column<int>(type: "int", nullable: false),
                    NextNodeCode = table.Column<int>(type: "int", nullable: false),
                    Status = table.Column<int>(type: "int", nullable: false),
                    CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_WF_Nodes", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "WF_Records",
                columns: table => new
                {
                    Id = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    WFId = table.Column<int>(type: "int", nullable: false),
                    ApplicationId = table.Column<int>(type: "int", nullable: false),
                    ApplicationTypeId = table.Column<int>(type: "int", nullable: false),
                    NodeCode = table.Column<int>(type: "int", nullable: false),
                    NodeName = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    OperatorId = table.Column<int>(type: "int", nullable: false),
                    Operator = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    ApprovalOpinions = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    ApprovalStatus = table.Column<int>(type: "int", nullable: false),
                    Status = table.Column<int>(type: "int", nullable: false),
                    CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_WF_Records", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "Base_RoleMenus",
                columns: table => new
                {
                    Id = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    RoleId = table.Column<int>(type: "int", nullable: false),
                    MenuId = table.Column<int>(type: "int", nullable: false),
                    CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    Status = table.Column<int>(type: "int", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Base_RoleMenus", x => x.Id);
                    table.ForeignKey(
                        name: "FK_Base_RoleMenus_Base_RoleInfos_RoleId",
                        column: x => x.RoleId,
                        principalTable: "Base_RoleInfos",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                });

            migrationBuilder.CreateTable(
                name: "Base_LoginInfos",
                columns: table => new
                {
                    Id = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    UserId = table.Column<int>(type: "int", nullable: false),
                    LoginName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    LoginPwd = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    LoginCount = table.Column<int>(type: "int", nullable: false),
                    LoginLastTime = table.Column<DateTime>(type: "datetime2", nullable: true),
                    CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    Status = table.Column<int>(type: "int", nullable: false),
                    OpenId = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    ProfilePhoto = table.Column<string>(type: "nvarchar(max)", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Base_LoginInfos", x => x.Id);
                    table.ForeignKey(
                        name: "FK_Base_LoginInfos_Base_UserInfos_UserId",
                        column: x => x.UserId,
                        principalTable: "Base_UserInfos",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                });

            migrationBuilder.CreateTable(
                name: "ProcedureInfos",
                columns: table => new
                {
                    Id = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    BusinessId = table.Column<int>(type: "int", nullable: false),
                    ProcedureName = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: false),
                    ProcedureDesc = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
                    ProcedureOrder = table.Column<int>(type: "int", nullable: false),
                    CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    Status = table.Column<int>(type: "int", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_ProcedureInfos", x => x.Id);
                    table.ForeignKey(
                        name: "FK_ProcedureInfos_BusinessInfos_BusinessId",
                        column: x => x.BusinessId,
                        principalTable: "BusinessInfos",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                });

            migrationBuilder.CreateTable(
                name: "OrderDetails",
                columns: table => new
                {
                    Id = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    OrderId = table.Column<int>(type: "int", nullable: false),
                    ProductId = table.Column<int>(type: "int", nullable: false),
                    ProductName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    Price = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
                    Count = table.Column<int>(type: "int", nullable: false),
                    Total = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
                    CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    Status = table.Column<int>(type: "int", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_OrderDetails", x => x.Id);
                    table.ForeignKey(
                        name: "FK_OrderDetails_OrderInfos_OrderId",
                        column: x => x.OrderId,
                        principalTable: "OrderInfos",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                });

            migrationBuilder.CreateTable(
                name: "ProjectInfos",
                columns: table => new
                {
                    Id = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    OrderId = table.Column<int>(type: "int", nullable: false),
                    BusinessType = table.Column<int>(type: "int", nullable: false),
                    Period = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    ProjectName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    Leader = table.Column<int>(type: "int", nullable: false),
                    LeaderName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    Customer = table.Column<int>(type: "int", nullable: false),
                    CustomerName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    CompletedStatus = table.Column<int>(type: "int", nullable: false),
                    CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    Status = table.Column<int>(type: "int", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_ProjectInfos", x => x.Id);
                    table.ForeignKey(
                        name: "FK_ProjectInfos_OrderInfos_OrderId",
                        column: x => x.OrderId,
                        principalTable: "OrderInfos",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                });

            migrationBuilder.CreateTable(
                name: "UserProcedures",
                columns: table => new
                {
                    Id = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    ProjectId = table.Column<int>(type: "int", nullable: false),
                    ProcedureName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    Employee = table.Column<int>(type: "int", nullable: false),
                    EmployeeName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    BeginDate = table.Column<DateOnly>(type: "date", nullable: false),
                    EndDate = table.Column<DateOnly>(type: "date", nullable: false),
                    Desc = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
                    ProcedureOrder = table.Column<int>(type: "int", nullable: false),
                    CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    CheckStatus = table.Column<int>(type: "int", nullable: false),
                    Status = table.Column<int>(type: "int", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_UserProcedures", x => x.Id);
                    table.ForeignKey(
                        name: "FK_UserProcedures_ProjectInfos_ProjectId",
                        column: x => x.ProjectId,
                        principalTable: "ProjectInfos",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                });

            migrationBuilder.InsertData(
                table: "Base_DictInfos",
                columns: new[] { "Id", "CreateTime", "DictDesc", "DictName", "DictOrder", "DictTypeId", "DictValue", "Status" },
                values: new object[,]
                {
                    { 1, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5201), null, "正常", 1, 1, 1, 1 },
                    { 2, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5206), null, "删除", 2, 1, 0, 1 },
                    { 3, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5207), null, "禁用", 3, 1, -1, 1 },
                    { 4, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5207), null, "总经理办公室", 1, 2, 1, 1 },
                    { 5, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5208), null, "销售部", 2, 2, 2, 1 },
                    { 6, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5209), null, "工程部", 3, 2, 3, 1 },
                    { 7, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5210), null, "设计部", 4, 2, 4, 1 },
                    { 8, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5210), null, "筹备中", 1, 3, 0, 1 },
                    { 9, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5211), null, "进行中", 2, 3, 1, 1 },
                    { 10, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5212), null, "已完成", 3, 3, 2, 1 },
                    { 11, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5213), null, "未验收", 1, 4, 1, 1 },
                    { 12, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5213), null, "通过", 2, 4, 2, 1 },
                    { 13, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5214), null, "未通过", 3, 4, 3, 1 },
                    { 14, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5215), null, "进行中", 1, 5, 1, 1 },
                    { 15, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5216), null, "已完成", 2, 5, 2, 1 },
                    { 16, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5217), null, "延期", 3, 5, 3, 1 },
                    { 17, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5217), null, "普通客户", 1, 6, 1, 1 },
                    { 18, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5218), null, "VIP客户", 2, 6, 2, 1 },
                    { 19, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5219), null, "普通订单", 1, 7, 1, 1 },
                    { 20, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5220), null, "VIP订单", 2, 7, 2, 1 },
                    { 21, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5220), null, "未审核", 1, 8, 1, 1 },
                    { 22, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5221), null, "审批中", 2, 8, 2, 1 },
                    { 23, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5222), null, "通过", 3, 8, 3, 1 },
                    { 24, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5223), null, "驳回", 4, 8, 4, 1 },
                    { 25, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5224), null, "未成立", 1, 9, 0, 1 },
                    { 26, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5225), null, "进行中", 2, 9, 1, 1 }
                });

            migrationBuilder.InsertData(
                table: "Base_DictTypes",
                columns: new[] { "Id", "CreateTime", "DictTypeName", "Status" },
                values: new object[,]
                {
                    { 1, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5044), "常规状态", 1 },
                    { 2, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5047), "部门", 1 },
                    { 3, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5048), "项目完成状态", 1 },
                    { 4, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5049), "验收状态", 1 },
                    { 5, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5050), "工序状态", 1 },
                    { 6, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5051), "客户类型", 1 },
                    { 7, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5051), "订单类型", 1 },
                    { 8, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5052), "审批状态", 1 },
                    { 9, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5052), "订单项目状态", 1 }
                });

            migrationBuilder.InsertData(
                table: "Base_MenuInfos",
                columns: new[] { "Id", "CreateTime", "IsShow", "MenuIcon", "MenuName", "MenuOrder", "MenuUrl", "PId", "Status" },
                values: new object[,]
                {
                    { 1, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5379), 1, "User", "用户管理", 1, null, 0, 1 },
                    { 2, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5383), 1, "List", "用户列表", 1, "/user", 1, 1 },
                    { 3, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5385), 1, "Menu", "菜单管理", 2, null, 0, 1 },
                    { 4, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5386), 1, "List", "菜单列表", 1, "/menu", 3, 1 },
                    { 5, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5387), 1, "List", "角色管理", 3, null, 0, 1 },
                    { 6, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5388), 1, "List", "角色列表", 1, "/role", 5, 1 },
                    { 7, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5389), 1, "Notebook", "字典管理", 4, null, 0, 1 },
                    { 8, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5390), 1, "List", "字典列表", 1, "/dict", 7, 1 },
                    { 9, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5391), 1, "Brush", "业务管理", 5, null, 0, 1 },
                    { 10, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5391), 1, "List", "业务列表", 1, "/business", 9, 1 },
                    { 11, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5392), 1, "List", "工序列表", 2, "/procedure", 9, 1 },
                    { 12, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5393), 1, "Checked", "订单管理", 6, null, 0, 1 },
                    { 13, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5394), 1, "List", "订单列表", 1, "/order", 12, 1 },
                    { 14, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5395), 1, "List", "我的订单", 2, "/myOrder", 12, 1 },
                    { 15, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5396), 1, "List", "我的审批", 3, "/myOrderApproval", 12, 1 },
                    { 16, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5397), 1, "DataAnalysis", "项目管理", 7, null, 0, 1 },
                    { 17, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5398), 1, "List", "项目列表", 1, "/project", 16, 1 },
                    { 18, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5399), 1, "List", "我的项目", 2, "/myProject", 16, 1 },
                    { 19, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5400), 1, "Shop", "商品管理", 8, null, 0, 1 },
                    { 20, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5401), 1, "List", "商品列表", 1, "/productinfo", 19, 1 },
                    { 21, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5402), 1, "List", "审批管理", 9, null, 0, 1 },
                    { 22, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5403), 1, "List", "审批列表", 1, "/approval", 21, 1 },
                    { 23, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5404), 1, "List", "我的审批", 2, "/myapproval", 21, 1 },
                    { 24, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5405), 1, "List", "审批节点", 3, "/approvalNode", 21, 1 },
                    { 25, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5406), 1, "WindPower", "任务管理", 10, null, 0, 1 },
                    { 26, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5407), 1, "List", "任务列表", 1, "/task", 25, 1 },
                    { 27, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5408), 1, "List", "我的任务", 2, "/myTask", 25, 1 }
                });

            migrationBuilder.InsertData(
                table: "Base_RoleInfos",
                columns: new[] { "Id", "CreateTime", "Remark", "RoleName", "RoleValue", "Status" },
                values: new object[,]
                {
                    { 1, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5329), "掌管一切的神", "管理员", 1, 1 },
                    { 2, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5333), "掌管项目的神", "项目负责人", 2, 1 },
                    { 3, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5334), "掌管money的神", "销售", 3, 1 },
                    { 4, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5334), "掌管工序的神", "普通员工", 4, 1 },
                    { 5, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5335), "财务审批", "财务", 5, 1 },
                    { 6, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5336), "部门审批", "部门审批", 6, 1 }
                });

            migrationBuilder.InsertData(
                table: "Base_UserInfos",
                columns: new[] { "Id", "CreateTime", "DeptId", "Email", "IdCard", "Sex", "Status", "Tel", "UserName" },
                values: new object[,]
                {
                    { 1, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5257), 1, "2386707006@qq.com", "431223200501200032", "男", 1, "13058519846", "管理员" },
                    { 2, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5262), 1, "fass23@ww.com", "434323199802030091", "男", 1, "18723879090", "李正心" },
                    { 3, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5263), 2, "zhangsan@sohu.com", "434323199702030009", "男", 1, "13800001111", "张三三" },
                    { 4, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5264), 1, "liudehua@ww2.com", "430523199802030092", "女", 1, "13811183122", "华芳" },
                    { 5, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5265), 1, "lisi@163.com", "434323199802030091", "男", 1, "13212345678", "李闯" },
                    { 6, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5266), 2, "wanyan@778.com", "434323199802030091", "男", 1, "13113254673", "王阳" },
                    { 7, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5267), 3, "sss@163.com", "434323199802030091", "男", 1, "13287654312", "童鱼" },
                    { 8, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5268), 3, "lisiqq@163.com", "434323199802030091", "男", 1, "13214325670", "廖洪杰" },
                    { 9, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5269), 1, "qqshou@163.com", "434323199802030091", "男", 1, "13212345590", "肖延吉" },
                    { 10, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5270), 1, "deng.org@163.com", "434323199802030091", "男", 1, "13811183880", "黄鑫" }
                });

            migrationBuilder.InsertData(
                table: "Base_UserRoles",
                columns: new[] { "Id", "CreateTime", "RoleId", "Status", "UserId" },
                values: new object[] { 1, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5469), 1, 1, 1 });

            migrationBuilder.InsertData(
                table: "BusinessInfos",
                columns: new[] { "Id", "BusinessDesc", "BusinessName", "CreateTime", "Status" },
                values: new object[,]
                {
                    { 1, "沙发定制描述", "沙发定制", new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5491), 1 },
                    { 2, "全屋全包，装修定制", "全屋定制", new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5495), 1 },
                    { 3, "半包定制描述", "半包定制", new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5496), 1 }
                });

            migrationBuilder.InsertData(
                table: "CustomerInfos",
                columns: new[] { "Id", "CreateTime", "CustomerName", "CustomerType", "Desc", "Linkman", "Password", "Status", "Tel" },
                values: new object[,]
                {
                    { 1, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5514), "华正商贸", 1, "认证对待", "李华正", "123456", 1, "13850504320" },
                    { 2, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5519), "强强KTV", 1, "认证对待", "张三", "123456", 1, "13834099878" },
                    { 3, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5519), "咪咪花店", 2, "认证对待", "许慧", "123456", 1, "13890908782" },
                    { 4, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5520), "宏正书店", 1, "认证对待", "章志成", "123456", 1, "13856561324" },
                    { 5, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5521), "艾薇科技", 2, "认证对待", "廖化", "123456", 1, "18098096452" }
                });

            migrationBuilder.InsertData(
                table: "ProductInfos",
                columns: new[] { "Id", "CreateTime", "ProductName", "ProductPict", "ProductPrice", "Status" },
                values: new object[,]
                {
                    { 1, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5594), "黑胡桃实木沙发", "home.png", 8780m, 1 },
                    { 2, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5601), "云朵棉麻沙发", "home.png", 3680m, 1 },
                    { 3, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5601), "全实木红木大床", "home.png", 4680m, 1 }
                });

            migrationBuilder.InsertData(
                table: "WF_ApprovalFlows",
                columns: new[] { "Id", "CreateTime", "Status", "TypeCode", "TypeDesc", "TypeName" },
                values: new object[,]
                {
                    { 1, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5621), 1, 101, "1000以内主管审批就行", "订单审批" },
                    { 2, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5624), 1, 102, "1000-10000以内主管和财务审批", "订单审批" }
                });

            migrationBuilder.InsertData(
                table: "WF_Nodes",
                columns: new[] { "Id", "CreateTime", "IsUseDept", "NextNodeCode", "NodeCode", "NodeName", "PrevNodeCode", "RoleId", "RoleName", "Status", "TypeCode" },
                values: new object[,]
                {
                    { 1, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5646), 0, 10102, 10101, "订单-发起审批", 0, 0, "", 1, 101 },
                    { 2, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5655), 1, 0, 10102, "订单-发起审批", 10101, 0, "", 1, 101 }
                });

            migrationBuilder.InsertData(
                table: "Base_LoginInfos",
                columns: new[] { "Id", "CreateTime", "LoginCount", "LoginLastTime", "LoginName", "LoginPwd", "OpenId", "ProfilePhoto", "Status", "UserId" },
                values: new object[,]
                {
                    { 1, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5297), 1, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5300), "admin", "123456", null, "avater.png", 1, 1 },
                    { 2, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5303), 1, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5304), "lizhengxin", "123456", null, "avater.png", 1, 2 },
                    { 3, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5304), 1, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5305), "zhangsansan", "123456", null, "avater.png", 1, 3 },
                    { 4, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5306), 1, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5306), "huafang", "123456", null, "avater.png", 1, 4 },
                    { 5, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5307), 1, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5307), "lichuang", "123456", null, "avater.png", 1, 5 },
                    { 6, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5308), 1, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5308), "wangyang", "123456", null, "avater.png", 1, 6 }
                });

            migrationBuilder.InsertData(
                table: "Base_RoleMenus",
                columns: new[] { "Id", "CreateTime", "MenuId", "RoleId", "Status" },
                values: new object[,]
                {
                    { 1, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5434), 2, 1, 1 },
                    { 2, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5438), 4, 1, 1 },
                    { 3, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5439), 6, 1, 1 },
                    { 4, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5440), 8, 1, 1 },
                    { 5, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5440), 10, 1, 1 },
                    { 6, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5441), 11, 1, 1 },
                    { 7, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5441), 13, 1, 1 },
                    { 8, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5442), 14, 1, 1 },
                    { 9, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5442), 15, 1, 1 },
                    { 10, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5443), 17, 1, 1 },
                    { 11, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5444), 18, 1, 1 },
                    { 12, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5444), 20, 1, 1 },
                    { 13, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5445), 22, 1, 1 },
                    { 14, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5445), 23, 1, 1 },
                    { 15, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5446), 24, 1, 1 },
                    { 16, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5446), 26, 1, 1 },
                    { 17, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5447), 27, 1, 1 }
                });

            migrationBuilder.InsertData(
                table: "ProcedureInfos",
                columns: new[] { "Id", "BusinessId", "CreateTime", "ProcedureDesc", "ProcedureName", "ProcedureOrder", "Status" },
                values: new object[,]
                {
                    { 1, 1, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5543), "要与客户进行方方面面的交谈", "客户洽淡", 1, 1 },
                    { 2, 1, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5547), "要设计出顾客满意的方案", "设计初步方案", 2, 1 },
                    { 3, 1, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5548), "确认现场施工环境，丈量面积等", "现场环境确认", 3, 1 },
                    { 4, 1, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5548), "询问沙发的价格", "沙发询价", 4, 1 },
                    { 5, 1, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5549), "询问抱枕的价格", "抱枕询价", 5, 1 },
                    { 6, 1, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5550), "询问饰品的价格", "饰品询价", 6, 1 },
                    { 7, 1, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5551), "对要购买的物品进行汇总报价", "编辑物品报价单", 7, 1 },
                    { 8, 1, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5551), "执行购买的物品", "购买物品", 8, 1 },
                    { 9, 1, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5552), "确认物品数量与质量", "物品清点验收", 9, 1 },
                    { 10, 1, new DateTime(2024, 8, 21, 15, 40, 55, 180, DateTimeKind.Local).AddTicks(5553), "根据客户要求与现场实际情况进行组装布置", "现场组装布置", 10, 1 }
                });

            migrationBuilder.CreateIndex(
                name: "IX_Base_LoginInfos_UserId",
                table: "Base_LoginInfos",
                column: "UserId");

            migrationBuilder.CreateIndex(
                name: "IX_Base_RoleMenus_RoleId",
                table: "Base_RoleMenus",
                column: "RoleId");

            migrationBuilder.CreateIndex(
                name: "IX_OrderDetails_OrderId",
                table: "OrderDetails",
                column: "OrderId");

            migrationBuilder.CreateIndex(
                name: "IX_ProcedureInfos_BusinessId",
                table: "ProcedureInfos",
                column: "BusinessId");

            migrationBuilder.CreateIndex(
                name: "IX_ProjectInfos_OrderId",
                table: "ProjectInfos",
                column: "OrderId",
                unique: true);

            migrationBuilder.CreateIndex(
                name: "IX_UserProcedures_ProjectId",
                table: "UserProcedures",
                column: "ProjectId");
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "Base_DictInfos");

            migrationBuilder.DropTable(
                name: "Base_DictTypes");

            migrationBuilder.DropTable(
                name: "Base_LoginInfos");

            migrationBuilder.DropTable(
                name: "Base_MenuInfos");

            migrationBuilder.DropTable(
                name: "Base_RoleMenus");

            migrationBuilder.DropTable(
                name: "Base_UserRoles");

            migrationBuilder.DropTable(
                name: "CustomerInfos");

            migrationBuilder.DropTable(
                name: "OrderDetails");

            migrationBuilder.DropTable(
                name: "ProcedureInfos");

            migrationBuilder.DropTable(
                name: "ProductInfos");

            migrationBuilder.DropTable(
                name: "UserProcedureRecords");

            migrationBuilder.DropTable(
                name: "UserProcedures");

            migrationBuilder.DropTable(
                name: "WF_ApprovalFlows");

            migrationBuilder.DropTable(
                name: "WF_Instances");

            migrationBuilder.DropTable(
                name: "WF_Nodes");

            migrationBuilder.DropTable(
                name: "WF_Records");

            migrationBuilder.DropTable(
                name: "Base_UserInfos");

            migrationBuilder.DropTable(
                name: "Base_RoleInfos");

            migrationBuilder.DropTable(
                name: "BusinessInfos");

            migrationBuilder.DropTable(
                name: "ProjectInfos");

            migrationBuilder.DropTable(
                name: "OrderInfos");
        }
    }
}
